# Create and remove Jupyter Kernels (Needs ipykernel installed)
=================================================================
conda install ipykernel
-create
python -m ipykernel install --user --name llamaindex --display-name "Python (llamaindex)"
-list
jupyter kernelspec list
- remove
jupyter kernelspec  remove remove


Anaconda Building identical conda environments
===================================
==== export packages to txt ====
conda list --explicit > spec-file.txt
more spec-file.txt
==new env ==
conda create --name remove_copy --file spec-file.txt 
== existing env ===
conda install --name myenv --file spec-file.txt
conda list --explicit > spec-file-2.txt

Anaconda Remove unused packages and caches.
===========================================
conda clean --help
dryrun: conda clean -d -v --all --json
borrado : conda clean [-a , -i, p,-t,-l] -v --json


Exporting the environment.yml file
==================================

conda env export > environment.yml

conda env create -f environment.yml

conda env export > environment2.yml
diff environment.yml environment2.yml

Restoring an environment
========================

conda list --revisions
conda install --revision=REVNUM
conda install --rev 3


